<template>
  <j-select-biz-component :width="1000" v-bind="configs" v-on="$listeners" />
</template>

<script>
  import JSelectBizComponent from '@/components/jeecgbiz/JSelectBizComponent'
  import {putAction,getFileAccessHttpUrl} from '@/api/manage';
  export default {
    name: 'JSelectSingers',
    components: { JSelectBizComponent },
    props: ['value'],
    data() {
      return {
        settings: {
          name: '歌手',
          displayKey: 'cname',
          returnKeys: ['id', 'id'],
          listUrl: '/mus/artist/list',
          queryParamCode: 'cname',
          queryParamText: '歌手昵称',
          columns: [

            {
              title: '歌手昵称',
              align: "left",
              dataIndex: 'cname',
              ellipsis: true,
              width: 120,
            },
            {
              title: '其他昵称',
              align: "center",
              width: 100,
              ellipsis: true,
              dataIndex: 'fname',
            },
            {
              title: '是否入驻',
              align: "center",
              width: 100,
              ellipsis: true,
              dataIndex: 'isEnter_dictText',
            },
            {
              title: '性别',
              align: "center",
              width: 100,
              ellipsis: true,
              dataIndex: 'singerType_dictText',
            },
            {
              title: '地区',
              align: "center",
              width: 100,
              ellipsis: true,
              dataIndex: 'singerRegion_dictText',
            },
            {
              title: '国籍',
              align: "center",
              width: 100,
              ellipsis: true,
              dataIndex: 'nationality',
            },
            {
              title: '出生地',
              align: "left",
              width: 100,
              ellipsis: true,
              dataIndex: 'birthplace',
            },
            {
              title: '身份',
              align: "center",
              width: 160,
              ellipsis: true,
              dataIndex: 'category_dictText',
            },
            {
              title: '热点标志',
              align: "center",
              width: 160,
              dataIndex: 'alias',
              ellipsis: true,
            },
            {
              title: '生日',
              align: "center",
              width: 100,
              dataIndex: 'birthday',
              ellipsis: true,
            },
            {
              title: '风格',
              align: "center",
              width: 180,
              dataIndex: 'styles_dictText',
              ellipsis: true,
            },
            {
              title: '基本信息',
              align: "center",
              width: 180,
              dataIndex: 'basicInfo',
              ellipsis: true,
            },
            {
              title: '代表作品',
              align: "center",
              width: 180,
              dataIndex: 'mainWorks',
              ellipsis: true,
            },
            {
              title: '主要成就',
              align: "center",
              width: 180,
              dataIndex: 'mainAchievements',
              ellipsis: true,
            },
            {
              title: '首字母',
              align: "center",
              width: 80,
              dataIndex: 'initial',
              sorter: true
            },
            {
              title: '状态',
              align: "center",
              width: 80,
              dataIndex: 'status_dictText'
            },
          ]
        }
      }
    },
    computed: {
      configs() {
        return Object.assign({ value: this.value }, this.settings, this.$attrs)
      }
    },
    methods: {
      getAvatarView: function (avatar) {
        return getFileAccessHttpUrl(avatar)
      },
    }
  }
</script>

<style scoped>

</style>